using System;
using ZhCun.DbCore.Entitys;

namespace ZhCun.WebCommon.DBModels
{
	public partial class VSysRoleMenu : EntityBase
	{
		private System.String _Id;
		/// <summary>
		/// Id
		/// </summary>
		[Entity(ColumnName = CNId, IsPrimaryKey = true, IsNotNull = true)]
		public System.String Id
		{
			get { return _Id; }
			set
			{
				_Id = value;
				base.SetFieldChanged(CNId) ;
			}
		}

		private System.String _RoleId;
		/// <summary>
		/// RoleId
		/// </summary>
		[Entity(ColumnName = CNRoleId, IsNotNull = true)]
		public System.String RoleId
		{
			get { return _RoleId; }
			set
			{
				_RoleId = value;
				base.SetFieldChanged(CNRoleId) ;
			}
		}

		private System.String _RoleName;
		/// <summary>
		/// RoleName
		/// </summary>
		[Entity(ColumnName = CNRoleName, IsNotNull = true)]
		public System.String RoleName
		{
			get { return _RoleName; }
			set
			{
				_RoleName = value;
				base.SetFieldChanged(CNRoleName) ;
			}
		}

		private System.Boolean _IsSysRole;
		/// <summary>
		/// IsSysRole
		/// </summary>
		[Entity(ColumnName = CNIsSysRole, IsNotNull = true)]
		public System.Boolean IsSysRole
		{
			get { return _IsSysRole; }
			set
			{
				_IsSysRole = value;
				base.SetFieldChanged(CNIsSysRole) ;
			}
		}

		private System.String _MenuId;
		/// <summary>
		/// MenuId
		/// </summary>
		[Entity(ColumnName = CNMenuId, IsNotNull = true)]
		public System.String MenuId
		{
			get { return _MenuId; }
			set
			{
				_MenuId = value;
				base.SetFieldChanged(CNMenuId) ;
			}
		}

		private System.String _MenuPId;
		/// <summary>
		/// MenuPId
		/// </summary>
		[Entity(ColumnName = CNMenuPId, IsNotNull = true)]
		public System.String MenuPId
		{
			get { return _MenuPId; }
			set
			{
				_MenuPId = value;
				base.SetFieldChanged(CNMenuPId) ;
			}
		}

		private System.String _MenuName;
		/// <summary>
		/// MenuName
		/// </summary>
		[Entity(ColumnName = CNMenuName, IsNotNull = true)]
		public System.String MenuName
		{
			get { return _MenuName; }
			set
			{
				_MenuName = value;
				base.SetFieldChanged(CNMenuName) ;
			}
		}

		private System.String _MenuUrl;
		/// <summary>
		/// MenuUrl
		/// </summary>
		[Entity(ColumnName = CNMenuUrl)]
		public System.String MenuUrl
		{
			get { return _MenuUrl; }
			set
			{
				_MenuUrl = value;
				base.SetFieldChanged(CNMenuUrl) ;
			}
		}

		private System.String _MenuIcon;
		/// <summary>
		/// MenuIcon
		/// </summary>
		[Entity(ColumnName = CNMenuIcon)]
		public System.String MenuIcon
		{
			get { return _MenuIcon; }
			set
			{
				_MenuIcon = value;
				base.SetFieldChanged(CNMenuIcon) ;
			}
		}

		private System.Boolean _IsApi;
		/// <summary>
		/// IsApi
		/// </summary>
		[Entity(ColumnName = CNIsApi, IsNotNull = true)]
		public System.Boolean IsApi
		{
			get { return _IsApi; }
			set
			{
				_IsApi = value;
				base.SetFieldChanged(CNIsApi) ;
			}
		}

		private System.Boolean _IsEnable;
		/// <summary>
		/// IsEnable
		/// </summary>
		[Entity(ColumnName = CNIsEnable, IsNotNull = true)]
		public System.Boolean IsEnable
		{
			get { return _IsEnable; }
			set
			{
				_IsEnable = value;
				base.SetFieldChanged(CNIsEnable) ;
			}
		}

		private System.Boolean _MenuExpand;
		/// <summary>
		/// MenuExpand
		/// </summary>
		[Entity(ColumnName = CNMenuExpand, IsNotNull = true)]
		public System.Boolean MenuExpand
		{
			get { return _MenuExpand; }
			set
			{
				_MenuExpand = value;
				base.SetFieldChanged(CNMenuExpand) ;
			}
		}

		private System.SByte _MenuLevel;
		/// <summary>
		/// MenuLevel
		/// </summary>
		[Entity(ColumnName = CNMenuLevel, IsNotNull = true)]
		public System.SByte MenuLevel
		{
			get { return _MenuLevel; }
			set
			{
				_MenuLevel = value;
				base.SetFieldChanged(CNMenuLevel) ;
			}
		}

		private System.Int32 _MenuOrder;
		/// <summary>
		/// MenuOrder
		/// </summary>
		[Entity(ColumnName = CNMenuOrder, IsNotNull = true)]
		public System.Int32 MenuOrder
		{
			get { return _MenuOrder; }
			set
			{
				_MenuOrder = value;
				base.SetFieldChanged(CNMenuOrder) ;
			}
		}

		#region 字段名的定义
		public const string CNId = "Id";
		public const string CNRoleId = "RoleId";
		public const string CNRoleName = "RoleName";
		public const string CNIsSysRole = "IsSysRole";
		public const string CNMenuId = "MenuId";
		public const string CNMenuPId = "MenuPId";
		public const string CNMenuName = "MenuName";
		public const string CNMenuUrl = "MenuUrl";
		public const string CNMenuIcon = "MenuIcon";
		public const string CNIsApi = "IsApi";
		public const string CNIsEnable = "IsEnable";
		public const string CNMenuExpand = "MenuExpand";
		public const string CNMenuLevel = "MenuLevel";
		public const string CNMenuOrder = "MenuOrder";
		#endregion

	}
}
